package com.example.demo.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.example.demo.custom.BaseRepository;
import com.example.demo.entity.Permission;
import com.example.demo.entity.TbMenu;

@Repository
public interface TbMenuRepository extends BaseRepository<TbMenu, Integer>{

	public List<TbMenu> findByParentIsNullOrderByIdx1();

	public List<TbMenu> findByParentIsNull();

	public List<TbMenu> findByRole(Permission perssion);

	

}
